home *** CD-ROM | disk | FTP | other *** search
/ Aminet 39 / Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso / Aminet / mus / misc / spcli.lha / SongPlayerCLI / Rexx / SpCLI / Count.rexx < prev    next >
OS/2 REXX Batch file  |  2000-08-23  |  382b  |  19 lines

  1. /* 
  2. SongPlayerCLI v1.52 (by Gareth Griffiths)
  3. E-Mail: gazchap@btinternet.com
  4. Count.rexx - Counts number of files in the playlist.
  5. */
  6.  
  7. IF ~SHOW('P','SONGPLAYER.1') THEN DO
  8.     ADDRESS COMMAND
  9.     SAY "Can't find ARexx port 'SONGPLAYER.1'"
  10.     EXIT
  11. END
  12.  
  13. ADDRESS 'SONGPLAYER.1'
  14. OPTIONS RESULTS
  15. 'GET_COUNT'
  16. count=result
  17. ADDRESS COMMAND
  18. SAY 'Number of files in the loaded playlist: 'count'.'
  19. EXIT